//
//  ScrollMenu.h
//  ParkButler-Owner
//
//  Created by qq on 2019/5/20.
//  Copyright © 2019 yhy. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NibView.h"

NS_ASSUME_NONNULL_BEGIN
@class ScrollMenu;

@protocol ScrollMenuDelegate
@required
-(UIView*)containerViewInScrollMenu:(ScrollMenu*)menu;
-(UIViewController*)scrollMenu:(ScrollMenu*)menu controllerAtIndex:(NSInteger)index;
@end

@interface ScrollMenu : NibView

@property(assign, nonatomic) NSInteger selIndex;
@property (weak, nonatomic) UIViewController<ScrollMenuDelegate>* delegate;
@property (assign, nonatomic) CGFloat duration;

-(void)switchTo:(NSInteger)to;
-(NSArray<UIButton*>*)buttons;
-(NSArray<UIView*>*)dashlines;

@end

NS_ASSUME_NONNULL_END
